package com.ruoyi.visitor.mapper;

import java.util.List;
import com.ruoyi.visitor.domain.VisitorAppointment;
import org.apache.ibatis.annotations.Param;

/**
 * 访客预约记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-12
 */
public interface VisitorAppointmentMapper 
{
    /**
     * 查询访客预约记录
     * 
     * @param id 访客预约记录主键
     * @return 访客预约记录
     */
    public VisitorAppointment selectVisitorAppointmentById(Long id);

    /**
     * 查询当天的预约
     * @param code
     * @param day
     * @return
     */
    public VisitorAppointment selectVisitorAppointment(@Param("code") String code, @Param("day") String day);

    /**
     * 查询访客预约记录列表
     * 
     * @param visitorAppointment 访客预约记录
     * @return 访客预约记录集合
     */
    public List<VisitorAppointment> selectVisitorAppointmentList(VisitorAppointment visitorAppointment);

    /**
     * 新增访客预约记录
     * 
     * @param visitorAppointment 访客预约记录
     * @return 结果
     */
    public int insertVisitorAppointment(VisitorAppointment visitorAppointment);

    /**
     * 修改访客预约记录
     * 
     * @param visitorAppointment 访客预约记录
     * @return 结果
     */
    public int updateVisitorAppointment(VisitorAppointment visitorAppointment);

    /**
     * 删除访客预约记录
     * 
     * @param id 访客预约记录主键
     * @return 结果
     */
    public int deleteVisitorAppointmentById(Long id);

    /**
     * 批量删除访客预约记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVisitorAppointmentByIds(String[] ids);
}
